﻿using CommonEngine.STSDB.Core;
using System;
using System.IO;

namespace CommonEngine
{
    public sealed class STSFactory
    {
        /// <summary>
        /// 取DB操作
        /// </summary>
        public static INoSQLDB CreateBizDB()
        {
            return new NoSQLDB();
        }

        /// <summary>
        /// STS的文件夹
        /// </summary>
        public static string STSPath()
        {
            string stsPath = AppContext.BaseDirectory + @"stsDB\";
            if (!Directory.Exists(stsPath))
                Directory.CreateDirectory(stsPath);

            return stsPath;
        }
    }
}
